<template>
  <view>
    <web-view :webview-styles="webviewStyles" :src="url"></web-view>
  </view>
</template>

<script>
export default {
  name: "PreviewDoc",
  props: {

  },
  data () {
    return {
      url: '',
    }
  },
  onLoad (options) {
		let decodedData = decodeURIComponent(options.data);
		
    this.url = JSON.parse(decodedData).previewUrl;
  },
}
</script>

<style scoped lang="scss">
page {
  overflow: hidden;
  width: 100vw;
}
</style>
